/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Display


import com.vaadin.ui.*

/**
 *
 * @author patrick
 */
class Layout  extends com.vaadin.Application {

    def layout
    def left
    def right
    def center
    def inputBox

    void init() {
        showFrames()
        addInputForm()
    }

    void showFrames(){
        layout = new GridLayout(3, 3)
        layout.setHeight("100%")
        layout.setWidth("100%")

        Window window = new Window("WMTU 91.9FM Music Explorer", layout)
        setMainWindow(window)
        //window.showNotification("caption", "description");
    }

    void addInputForm() {
        inputBox = new FieldInput()
   //     def moreBoxes = new FieldInput()
  //      moreBoxes.setWidth("100%")
        layout.addComponent(inputBox, 1,1,1,1)
   //     layout.addComponent(moreBoxes, 2,0,2,2)

        layout.setColumnExpandRatio(0, 1)
        layout.setColumnExpandRatio(1, 2)
        layout.setColumnExpandRatio(2, 3)
    //    layout.setRowExpandRatio(0, 1)

    }
}

